Windows Terminal Powershell 主题美化 |
您所在的位置:网站首页 › hive sql和mysql区别 › Windows Terminal Powershell 主题美化 |
效果图
这里是官网下载地址 2.安装VS Code这里是官网下载地址 注意:安装VS Code是为了方便打开配置文件,此处可以选择不安装,这里仅作为推荐(方便打开powershell配置文件)。 3.安装scoopscoop 是 Windows 平台的包管理工具(非官方),类似 Linux 的 yum 或者 mac 的 homebrew 。打开 PowerShell 7,输入命令: # 设置执行权限 > Set-ExecutionPolicy RemoteSigned -scope CurrentUser # 从网络下载脚本并安装 > Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh') # ( 如果出现错误提示,是因为访问不了目标地址,使用如下地址安装 ) > Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://cdn.yulinyige.com/script/scoop-installs.ps1') 复制代码 4.安装oh-my-posh 和 posh-git打开PowerShell 7 控制台,输入命令: > Install-Module posh-git > Install-Module oh-my-posh 复制代码注意,在安装过程中出现提示后,输入Y继续安装。 5.配置Powershell配置文件 打开配置文件(方式1:未安装VSCode)打开PowerShell 7 控制台,输入命令 > $PROFILE 复制代码在回显的信息中能看到powershell的配置文件所在处:
保存后,再次打开powershell控制台即可看到效果。
如若出现中文以及图标乱码问题,可更换字体,打开PowerShell 7 控制台,输入命令: > scoop search FantasqueSansMono-NF > scoop bucket add 'nerd-fonts' > scoop install FantasqueSansMono-NF 复制代码安装完成后,在powershell控制台更改默认值中的字体: 选中安装好的字体后,确定,重启powershell控制台即可解决乱码问题。 7.VSCode控制台乱码问题如果在VSCode编辑器中使用该powershell,需要在设置中的字体配置中添加该字体: 保存后重启终端即可解决乱码问题。 |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |